
 <?php
/*if(isset($_POST['bankVerify']))
{
	$sql = "UPDATE sacc_verificationstatus SET bankretrieve_status = '1' WHERE app_id = ".$_SESSION['app_id'];	
	mysql_query($sql);
	
	$sql = "UPDATE crm_application SET MC_Process = 'confirm' WHERE app_id = ".$_SESSION['app_id'];
	mysql_query($sql);
	header('Location:index.php?dashboard'); exit;
}
if(isset($_POST['show_idcheck']))
{
?>
<?php 	
}*/
?>

<h2><i class="fa fa-arrow-circle-right"></i>Your Dashboard</h2>
<p><strong>Track your loan process</strong></p> 
<div class="well process">
     <ul id="loanProgress">       
<li id="apply1">Pre-Approvad<span></span></li>
        <li id="verify"  <?php if($Process =='waitingverify'){ echo 'style=background-color:#f1fbea';} ?>>Verify 
            <ul>
                <li id="incomeverify"><img src="images/user-icon.png" class="round"/>Photo Id
                    <?php if($row != NULL && $row['idcheck_status'] == 1): ?>       
                    <span></span>                                                       
                    <?php else: ?>
                    <a  href="index.php?verify-photo-id">Verify</a>
                    <?php endif; ?>
                </li>
                <li id="employeverify"><img src="images/employment-icon.png" class="round" />Employement
                    <?php if($row != NULL && $row['payslip_status'] == 1): ?>
                    <span></span>
                    <?php else: ?>
                    <a href="index.php?verify-employment">Verify</a>
                    <?php endif; ?> 
                </li>
                <li id="bankverify"><img src="images/bank-icon.png" class="round" />Bank
                    <?php if($row != NULL && $row['bankretrieve_status'] == 1): ?>
                    <span></span>
                    <?php else: ?>
                    <a id="bankVerify" href="index.php?verify-bank">Verify</a>
                    <form id="Bverify" action="<?php echo $_SERVER['PHP_SELF']; ?>?verify-process" method="post">
                    <input type="hidden" name="bankVerify" value="bankVerify" />
                    </form>
                    <?php endif; ?> 
                </li>
                        <li><p>Once all documents provided & verified(usually 1-3 hour),we will send you a SMS for e-sign contract</p></li>

            </ul>
        </li>
        <script>
        $(document).ready(function(){
        $('#bankVerify').click(function(){
            $('#Bverify').submit();	   
        });						   
                               
        });
        
        </script>
        <li id="confirm"  <?php if($Process =='confirm'){ echo 'style=background-color:#f1fbea';} ?>> 
            <?php if($status != 'close' && $Process == 'confirm' && $CreatedContract == '1' && $VerifyEsign == '0'): ?>
            <a href="index.php?sign-contract">Confirm</a> 
            <?php else: ?>
            <div id="confirm_title" class="span6">E-sign Contract </div>
            <?php if($row != NULL && $row['payslip_status'] == 1 && $row['payslip_status'] == 1 && $row['bankretrieve_status'] == 1) :  ?>
            <div id="confirm_message" class="span6">
            "Hi <?php echo $_SESSION['display_name']; ?>, we are quickly finalising your application. Please allow 1-3 hours for a fast 
            respond via SMS, Email. Afterwards, simply e-sign the contract and funds to your bank account." 
            </div>
            <?php endif; ?>
            <?php endif; ?> 
        </li>
        <li id="getmoney">
			<?php if($status != 'close' && $Process == 'confirm' && $CreatedContract == '1' && $VerifyEsign == '1'): ?>
            <a href="index.php?getmoney">Get Money</a> 
            <span></span>
            <?php else: ?>
           Get Money in your account
            <em></em>
            <?php endif; ?>
            
        </li>
    </ul>
</div>
 </div>       